<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>
			<fmt:message key='info_menu_${param.actionType }'></fmt:message>
		</title>
		<link type="text/css" rel="stylesheet" href="${ctx }/scripts/plugins/smartpaginator/smartpaginator.css" />
		<script type="text/javascript" src="${ctx }/scripts/plugins/smartpaginator/smartpaginator.js"></script>
		<script type="text/javascript" src="${ctx }/scripts/plugins/date/timer.js"></script>
		<script type="text/javascript" src="${ctx }/scripts/rollbook/notepad/notepad.js"></script>
		<script type="text/javascript">
	        $(function () {
	            searchNotepad("${param.actionType }", "statistic");
	            $('#pageBar').smartpaginator({ 
	                totalrecords: "${statisticList[0] }", 
	                recordsperpage: 10, 
	                length: "${fn:substringBefore(statisticList[0]/10, '.') - 1 }", 
	                next: '下一页', 
	                prev: '上一页', 
	                first: '首页', 
	                last: '尾页', 
	                theme: 'blue', 
	                controlsalways: true, 
	                onchange: function (newPage) {
	                	searchNotepad("${param.actionType }","statistic", newPage, 10);
	           		}
	           	});
	        });
    	</script>
	</head>
	<body>
		<div class="container_16">
			<div class="grid_3">
				<jsp:include page="/common/menu.jsp"/>
			</div>
			<div class="grid_${currentRole.roleType.id eq 4 ? '13 omega' : '10 alpha omega' }">
				<div class="content_top">
					<div class="left">
						<img src="${ctx }/images/<fmt:message key='img_menu_${param.actionType }'></fmt:message>" />
					</div>
					<div class="right">
						<fmt:message key='info_menu_${param.actionType }'></fmt:message>
					</div>
					<div id="divTime" class="time">
				        <label id="lblDate"></label>
				        <label id="lblTime"></label>
				     </div>
				</div>
				<div class="content_bottom">
					<div style="padding: 10px;">
						<fmt:message key='info_statistic_${param.actionType }'></fmt:message>&nbsp;<label class="label">${statisticList[0] }</label>&nbsp;条，今日新增&nbsp;<label class="label">${statisticList[1] }</label>&nbsp;条，本周新增&nbsp;<label class="label">${statisticList[2] }</label>&nbsp;条，本月新增&nbsp;<label class="label">${statisticList[3] }</label>&nbsp;条。
					</div>
					<hr />
					<div id="statistic" align="center">
		                <img alt="" src="${ctx }/images/loading.gif">
					</div>
					<p />
					<c:if test="${statisticList[0] gt 10 }">
						<div id="pageBar" style="width: ${currentRole.roleType.id eq 4 ? 750 : 570 }px;"></div>
					</c:if>
				</div>
			</div>
			<c:if test="${currentRole.roleType.id ne 4 }">
				<jsp:include page="../sitecontent/appInfo.jsp"></jsp:include>
			</c:if>
		</div>
		<div class="container_16" style="margin-top: 50px;">
			<p></p>
		</div>
	</body>
</html>
